import antfu from '@antfu/eslint-config'

export default antfu({
  formatters: true,
  unocss: true,
  vue: true,
  rules: {
    'antfu/top-level-function': 'off',
    'unused-imports/no-unused-vars': 'off',
    'ts/ban-ts-comment': 'off',
    'no-console': 'off',
    'style/no-tabs': 'off',
    'vue/eqeqeq': 'off',
    'vue/valid-v-for': 'off',
    'unocss/order': 'off',
    'prefer-promise-reject-errors': 'off',
    'jsdoc/require-returns-description': 'off',
    'jsdoc/check-param-names': 'off',
  },
  ignores: [
    'tsconfig.*',
    '.env*',
    'typings',
    'locales',
    'packages',
    'public',
    'src/api',
  ],
})
